from wxauto import *

# 获取当前微信客户端
wx = WeChat()


# 获取会话列表
tem = wx.GetSessionList()

print(f'{tem}\n{list(tem.keys())[0]}{tem[list(tem.keys())[0]]}')


# 向某人发送消息（以`文件传输助手`为例）
msg = '你好~'
who = '文件传输助手'
wx.SendMsg(msg, who)  # 向`文件传输助手`发送消息：你好~




name = "张三"
age = 25
city = "北京"

print(f"姓名: {name}\n年龄: {age}\n城市: {city}")